<!--<meta http-equiv="refresh" content="240"/>-->
<link href="__PUBLIC__/Admin/css/same.css"  type="text/css" rel="stylesheet"/>
<script src="__PUBLIC__/js/jquery-1.11.3.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/js/layer/layer.js" type="text/javascript"></script>
<script src="__PUBLIC__/Admin/js/SystemManage.js" type="text/javascript"></script>
<div class="a-main-left-content">
    <div class="a_con_title">
        <h4>图书分类管理</h4>
    </div>
    <div class="a_title_tip">
        <img class="a_record_icon" src="/Public/img/record_01.jpg"/>
        <span class="a_record_news">请认真修改以下分类类别，便于进行图书分类管理。</span>
    </div>
    <div class="box_book_class">
        <div class="book_class_top">
            <form action="{:U('Admin/SystemManage/bookClassManageAdd?id=1')}"  method="get" class="book_class_top1">
            <div class="title_span">
                <span>图书书架分类</span>
            </div>
                <div class="wyz_input_book_class">
                    书架名称：<input type="text" name="book_case_name" onkeyup="this.value = this.value.toUpperCase();">
                </div>
                <div class="button_book_class">
                    <input type="submit" value="添&nbsp;加">
                </div>
            </form>
            <div class="table_book_class">
                <table class="table_hr">
                    <tr >
                        <th>书架名称</th>
                        <th>录入者名称</th>
                        <th>录入时间</th>
                        <th>书架状态</th>
                        <th>操作</th>
                    </tr>
                    <volist name="_bookCaseInfo" id="vo">
                        <if condition="$vo['book_case_status'] eq 1">
                            <tr>
                                <td>{$vo['book_case_name']}</td>
                                <td>{$vo['a_name']}</td>
                                <td>{$vo['book_case_intime']|date="Y-m-d H:i:s",###}</td>
                                <td class="status1">{$vo['book_case_status']}</td>
                                <td>
                                    <button class="del wyz_dd" data-id-del="{$vo['book_case_id']}">禁用</button>
                                </td>
                            </tr>
                            <else/>
                            <tr>
                                <td>{$vo['book_case_name']}</td>
                                <td>{$vo['a_name']}</td>
                                <td>{$vo['book_case_intime']|date="Y-m-d H:i:s",###}</td>
                                <td class="status2">{$vo['book_case_status']}</td>
                                <td>
                                    <button class="rec wyz_bb" data-id-rec="{$vo['book_case_id']}">恢复</button>
                                </td>
                            </tr>
                        </if>
                    </volist>
                </table>
                <input type="hidden" value="{:U('Admin/SystemManage/bookCaseDel')}" id="del-url">
                <input type="hidden" value="{:U('Admin/SystemManage/bookCaseRec')}" id="del-url-1">
            </div>
        </div>

        <div class="book_class_top">
            <form action="{:U('Admin/SystemManage/bookClassManageAdd?id=3')}" method="get"  class="book_class_top1">
                <div class="title_span">
                    <span>出版社分类</span>
                </div>
                <div class="wyz_input_book_class">
                    出版社名称：<input type="text" name="book_ISBN_name">
                </div>
                <div class="button_book_class">
                    <input type="submit" value="添&nbsp;加">
                </div>
            </form>
            <div class="table_book_class">
                <table class="table_hr">
                    <tr >
                        <th>出版社名称</th>
                        <th>录入者名称</th>
                        <th>录入时间</th>
                        <th>状态</th>
                        <th>操作</th>
                    </tr>
                    <volist name="_bookIsbnInfo" id="so">
                        <if condition="$so['book_isbn_status'] eq 1">
                            <tr>
                                <td>{$so['book_isbn_name']}</td>
                                <td>{$so['a_name']}</td>
                                <td>{$so['book_isbn_intime']|date="Y-m-d H:i:s",###}</td>
                                <td class="status1">{$so['book_isbn_status']}</td>
                                <td>
                                    <button class="del1 wyz_dd" data-id-del1="{$so['book_isbn_id']}">禁用</button>
                                </td>
                            </tr>
                            <else/>
                            <tr>
                                <td>{$so['book_isbn_name']}</td>
                                <td>{$so['a_name']}</td>
                                <td>{$so['book_isbn_intime']|date="Y-m-d H:i:s",###}</td>
                                <td class="status2">{$so['book_ISBN_status']}</td>
                                <td>
                                    <button class="rec1 wyz_bb" data-id-rec1="{$so['book_isbn_id']}">恢复</button>
                                </td>
                            </tr>
                        </if>
                    </volist>
                </table>
                <input type="hidden" value="{:U('Admin/SystemManage/bookIsbnDel')}" id="del-url-2">
                <input type="hidden" value="{:U('Admin/SystemManage/bookIsbnRec')}" id="del-url-3">
            </div>
        </div>

        <div class="book_class_top">
            <form action="{:U('Admin/SystemManage/bookClassManageAdd?id=2')}" method="get" class="book_class_top1">
            <div class="title_span">
                <span>图书类型分类</span>
            </div>
                <div class="wyz_input_book_class">
                    图书类型名称：<input type="text" name="book_type_name">
                </div>
                <div class="button_book_class">
                    <input type="submit" value="添&nbsp;加" onclick="tanchu()">
                </div>
            </form>

            <div class="table_book_class">
                <table class="table_hr">
                    <tr >
                        <th>类型名称</th>
                        <th>录入者名称</th>
                        <th>录入时间</th>
                        <th>借阅时间</th>
                        <th>状态</th>
                        <th>操作</th>
                    </tr>
                    <volist name="_bookTypeInfo" id="co">
                        <if condition="$co['book_type_status'] eq 1">
                            <tr>
                                <td>{$co['book_type_name']}</td>
                                <td>{$co['a_name']}</td>
                                <td>{$co['book_type_intime']|date="Y-m-d H:i:s",###}</td>
                                <td>{$co['borrow_time_days']}天</td>
                                <td class="status1">{$co['book_type_status']}</td>
                                <td>
                                    <button class="del2 wyz_dd" data-id-del2="{$co['book_type_id']}">禁用</button>
                                </td>
                            </tr>
                            <else/>
                            <tr>
                                <td>{$co['book_type_name']}</td>
                                <td>{$co['a_name']}</td>
                                <td>{$co['book_type_intime']|date="Y-m-d H:i:s",###}</td>
                                <td>{$co['borrow_time_days']}天</td>
                                <td class="status2">{$co['book_type_status']}</td>
                                <td>
                                    <button class="rec2 wyz_bb" data-id-rec2="{$co['book_type_id']}">恢复</button>
                                </td>
                            </tr>
                        </if>
                    </volist>
                </table>
                <input type="hidden" value="{:U('Admin/SystemManage/bookTypeDel')}" id="del-url-4">
                <input type="hidden" value="{:U('Admin/SystemManage/bookTypeRec')}" id="del-url-5">
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(".status1").html("使用中");
    $(".status2").html("未使用");
</script>
